package com.wbihua.metrics.factory;

import com.wbihua.common.metrics.config.MeterConfig;
import com.wbihua.common.metrics.factory.MetricFactory;
import com.wbihua.common.metrics.manager.MetricManager;
import com.wbihua.metrics.manager.PrometheusMetricManager;

public class PrometheusMetricFactory implements MetricFactory {
    private  MetricManager metricManager;

    @Override
    public MetricFactory initFactory(MeterConfig config) {
        this.metricManager = new PrometheusMetricManager(config);
        return this;
    }

    @Override
    public MetricManager getMetricManager() {
        return this.metricManager;
    }
}
